package com.company.section5;

/**
 * @author cbf4Life cbf4life@126.com
 * I'm glad to share my knowledge with you all.
 * 单例对象
 */
public class Singleton {

    //不允许通过new产生一个对象
    private Singleton() {

    }

    public void doSomething() {
        //业务处理
    }
}
